//
//  SEGDigitalCommunity2HouseInfoViewModel.h
//  SEGViewModel
//
//  Created by 山刘 on 2020/6/22.
//

#import <Foundation/Foundation.h>
#import <ReactiveObjC/ReactiveObjC.h>
#import "SEGQuerycustomerlistbyhouseidManager.h"

typedef NS_ENUM(NSInteger, SEGCusAuthorVerificationCodeType) {
    SEGCusAuthorVerificationCodeTypeDefault,// 直接发起
    SEGCusAuthorVerificationCodeTypeNewTel,// 新手机号发起
};// 短信验证码类型，用于：verificationCodeCommand

NS_ASSUME_NONNULL_BEGIN

@interface SEGDigitalCommunity2LandlordViewModel : NSObject
#pragma mark - 业主申请认证-用户信息
/// 申请认证-点击下一步按钮
@property (nonatomic, strong, readonly) RACCommand *nextStepCommand;
@property (strong, nonatomic, readonly) RACSubject *messageSubject;
/// 点击下一步的按钮状态
@property (nonatomic, assign) BOOL goNextStatus;
/// 房屋信息
@property (nonatomic, copy) NSString *houseInfo;
/// 房屋Id
@property (nonatomic, copy) NSString *houseId;
/// 业主姓名
@property (nonatomic, copy) NSString *userName;
/// 业主身份证后6位
@property (nonatomic, copy) NSString *PersonalIdLastSix;
/// 匹配好的业主信息
@property (nonatomic, strong) SEGQuerycustomerlistbyhouseidResultlistModel *CusInfo;

/// 监听 下一步 按钮是否可点击
-(void)checkStatusThatGoNext;

#pragma mark - 业主申请认证-手机号验证
/// 手机后四位输入 确认 阿娜妞
@property (nonatomic, assign) BOOL telConfirmStatus;

/// 判断申请认证的手机号是否匹配
/// @param inputLastText 手机号后四位
-(BOOL)checkTelInputStatus:(NSString*)inputLastText;


#pragma mark - 获取短信验证码
/// 短信验证码按钮可点击状态
@property (nonatomic, assign,readonly) BOOL codeButtonEnabled;
/// 短信验证码按钮标题
@property (nonatomic, copy,readonly) NSString* codeButtonTitleString;
/// 发送短信验证码
@property (nonatomic, strong, readonly) RACCommand *verificationCodeCommand;

#pragma mark - 发起业主认证
/// 验证码
@property (nonatomic, copy) NSString *verificationCode;
/// 业主认证
@property (nonatomic, strong, readonly) RACCommand *ownerAuthorCommand;

#pragma mark - 更换手机号
/// 新手机号
@property (nonatomic, copy) NSString *cusNewTel;
/// 更换手机号-确认提交按钮的可点击状态
@property (nonatomic, assign) BOOL cusNewTelConfirmButtonEnabled;
/// 监听更新手机号提交按钮的可点击状态
-(void)checkChangeCusTelConfirmButtonStatus;

@end

NS_ASSUME_NONNULL_END
